import { createApp } from 'vue'

import App from './App.vue'

import router from './router'

// 基础样式
import './assets/css/base.scss'
// echarts
import * as echarts from 'echarts'
// 通用js
import { fullScreen } from  './libs/common.js'

// 饿了么汉化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 饿了么UI
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './styles/index.scss'
import '@/assets/iconfont/iconfont.css'
import ECharts from 'vue-echarts'


const app = createApp(App)


app.component('v-chart', ECharts)

app.config.globalProperties.$echarts = echarts
app.config.globalProperties.$fullScreen= fullScreen
app.use(router)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(ElementPlus)
app.mount('#app')
